package com.gitee.algorithm.test;

import com.gitee.algorithm.sort.Bubble;

import java.util.Arrays;
import java.util.Random;

public class DemoBubble {
    public static void main(String[] args) {
        Integer[] intArray={3,2,4,5,6,1};//包装类
        //开始排序前
        long star=System.currentTimeMillis();
        Bubble.sort(intArray);
        System.out.println(Arrays.toString(intArray));//[1, 2, 3, 4, 5, 6]
        //结束排序后
        long end=System.currentTimeMillis();
        long time=end-star;
        System.out.println("共用时："+time);

    }
}
